/**
 * Created by Administrator on 16-10-17.
 */
$(document).ready(function() {
// 在键盘按下并释放及提交后验证提交表单
    $("#signupForm").validate({
        rules: {
            username: {
                required: true,
                minlength: 3
            },
            userpassword: {
                required: true,
                minlength: 6
            },
            validate_code: {
                required: true,
                minlength: 4
            },
//            topic: {
//                required: "#newsletter:checked",
//                minlength: 2
//            },
        },
        messages: {
            username: {
                required:"</br>"+"请输入用户名",
                minlength: "</br>"+"用户名不能小于 3 个字母"
            },
            userpassword: {
                required: "</br>"+"请输入密码",
                minlength:"</br>"+"密码长度不能小于 5 个字母"
            },
            validate_code: {
                required: "</br>"+"请输入验证码",
                minlength:"</br>"+"密码长度不能小于 4 个字母"
            }
        }
    });





})